<template>
  <textarea id="editor"></textarea>
  <el-button @click="submit" style="margin-top: 30px;">
    提交
  </el-button>
</template>

<script>

export default {
  mounted() {
    // 初始化 编辑器
    tinymce.init({
      selector: '#editor',
      language: 'zh-Hans', // 配置语言包
      promotion: false,
      branding: false,
      statusbar: true,
      plugins: "table image fullscreen preview"
    })
  },
  methods: {
    submit() {
      // 取值
      // tinymce.activeEditor.getContent 是固定的语法
      console.log(tinymce.activeEditor.getContent())
    }
  }
}
</script>